import VueRouter from 'vue-router'


import User from './components/User.vue'
import Home from './components/Home.vue'
import Search from './components/Search.vue'
import Shopcart from './components/Shopcart.vue'


const router = new VueRouter({
  routes: [
    { path: '/user', component: User },
    { path: '/search', component: Search },
    { path: '/shopcart', component: Shopcart },
    { path: '/home', component: Home },
    { path: '/', redirect:'/home' }
  ],
  linkActiveClass:'is-selected'
})

export default router


